--Requested by [NL]trucker --Made by nErBoS Bot = "=[Blocker2IP]=" dip = {} counter = {} diplogger = "dip.txt" --Will be created in the script folder function Main() --frmHub:RegBot(Bot) end function NewUserConnected(user, data) --Like [NL]Pur said this function only work to Users, not Operators if (counter[user.sIP] == nil) then counter[user.sIP] = 0 end if (counter[user.sIP] == 2) then counter[user.sIP] = 0 appendto(diplogger) write("\r\nThe IP "..user.sIP.." tried to enter with another nick 2 times.") writeto() end if (dip[user.sIP] == nil) then dip[user.sIP] = 1 elseif (dip[user.sIP] == 1) then user:SendPM(Bot, "You are already connected to the HUB with another nick.") ip2 = 1 counter[user.sIP] = counter[user.sIP] + 1 user:Disconnect() end end function UserDisconnected(user, data) if (ip2 == 1) then dip[user.sIP] = 1 ip2 = 0 else dip[user.sIP] = nil ip2 = 0 end end